package com.irisking.server.entity;

/**
 * 数据交换数据
 * @author -weiz-
 *
 */
public class TransforData {
	
	/**
	 *  请求码或回应码，2字节
	 */
	private short commCode;
	
	/**
	 * 请求子码，2字节，本次固定为0xaaaa
	 */
	private short commSubCode;

	/**
	 * 数据
	 */
	private byte[] data;

	/**
	 * 校验
	 */
	private short checkCode;

	public TransforData() {
	}
	

	public TransforData(short module, short cmd, byte[] data){
		this.commCode = module;
		this.commSubCode = cmd;
		this.data = data;
	}

	public byte[] getData() {
		return data;
	}

	public void setData(byte[] data) {
		this.data = data;
	}

	public short getCommCode() {
		return commCode;
	}

	public void setCommCode(short module) {
		this.commCode = module;
	}

	public short getCommSubCode() {
		return commSubCode;
	}

	public void setCommSubCode(short cmd) {
		this.commSubCode = cmd;
	}

	public short getCheckCode() {
		return checkCode;
	}

	public void setCheckCode(short checkCode) {
		this.checkCode = checkCode;
	}
}
